package com.yonyou.cyxdms.sysAuth.service.vo.user;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLongLocalDateTimeDeserializer;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLongLocalDateTimeSerializer;

import java.time.LocalDateTime;

/**
 * @author ：quankk
 * @date ：Created in 2019/7/11 18:11
 * @description：查询登录用户使用
 */
public class UserEmpVO {
    private Integer employeeId;
    private String dealerCode;
    private String employeeNo;
    private String employeeName;
    private Integer gender;
    private String workgroupCode;
    private Integer certificateId;
    private Integer organizationId;
    private String orgName;
    private String phone;
    private Integer isOnjob;
    private String positionCode;
    private String mobile;
    private String eEail;
    private Integer empId;

    @JsonSerialize(using = JsonLongLocalDateTimeSerializer.class)
    @JsonDeserialize(using = JsonLongLocalDateTimeDeserializer.class)
    private LocalDateTime birthday;
    private String userCode;
    private String address;
    private String zipCode;
    private Integer dataSources;
    private String workerTypeCode;
    private String technicianGrade;
    private String defaultPosition;
    private String foundDate;

    @JsonSerialize(using = JsonLongLocalDateTimeSerializer.class)
    @JsonDeserialize(using = JsonLongLocalDateTimeDeserializer.class)
    private LocalDateTime dimissionDate;
    private String appId;

    @JsonSerialize(using = JsonLongLocalDateTimeSerializer.class)
    @JsonDeserialize(using = JsonLongLocalDateTimeDeserializer.class)
    private LocalDateTime loginLastTime;
    private String password;
    private Integer userStatus;
    private String roles;

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public String getDealerCode() {
        return dealerCode;
    }

    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }

    public String getEmployeeNo() {
        return employeeNo;
    }

    public void setEmployeeNo(String employeeNo) {
        this.employeeNo = employeeNo;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getWorkgroupCode() {
        return workgroupCode;
    }

    public void setWorkgroupCode(String workgroupCode) {
        this.workgroupCode = workgroupCode;
    }

    public Integer getCertificateId() {
        return certificateId;
    }

    public void setCertificateId(Integer certificateId) {
        this.certificateId = certificateId;
    }

    public Integer getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(Integer organizationId) {
        this.organizationId = organizationId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getIsOnjob() {
        return isOnjob;
    }

    public void setIsOnjob(Integer isOnjob) {
        this.isOnjob = isOnjob;
    }

    public String getPositionCode() {
        return positionCode;
    }

    public void setPositionCode(String positionCode) {
        this.positionCode = positionCode;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String geteEail() {
        return eEail;
    }

    public void seteEail(String eEail) {
        this.eEail = eEail;
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public LocalDateTime getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDateTime birthday) {
        this.birthday = birthday;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public Integer getDataSources() {
        return dataSources;
    }

    public void setDataSources(Integer dataSources) {
        this.dataSources = dataSources;
    }

    public String getWorkerTypeCode() {
        return workerTypeCode;
    }

    public void setWorkerTypeCode(String workerTypeCode) {
        this.workerTypeCode = workerTypeCode;
    }

    public String getTechnicianGrade() {
        return technicianGrade;
    }

    public void setTechnicianGrade(String technicianGrade) {
        this.technicianGrade = technicianGrade;
    }

    public String getDefaultPosition() {
        return defaultPosition;
    }

    public void setDefaultPosition(String defaultPosition) {
        this.defaultPosition = defaultPosition;
    }

    public String getFoundDate() {
        return foundDate;
    }

    public void setFoundDate(String foundDate) {
        this.foundDate = foundDate;
    }

    public LocalDateTime getDimissionDate() {
        return dimissionDate;
    }

    public void setDimissionDate(LocalDateTime dimissionDate) {
        this.dimissionDate = dimissionDate;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public LocalDateTime getLoginLastTime() {
        return loginLastTime;
    }

    public void setLoginLastTime(LocalDateTime loginLastTime) {
        this.loginLastTime = loginLastTime;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public String getRoles() {
        return roles;
    }

    public void setRoles(String roles) {
        this.roles = roles;
    }

    @Override
    public String toString() {
        return "UserEmpVO{" +
                "employeeId=" + employeeId +
                ", dealerCode='" + dealerCode + '\'' +
                ", employeeNo='" + employeeNo + '\'' +
                ", employeeName='" + employeeName + '\'' +
                ", gender=" + gender +
                ", workgroupCode='" + workgroupCode + '\'' +
                ", certificateId=" + certificateId +
                ", organizationId=" + organizationId +
                ", orgName='" + orgName + '\'' +
                ", phone='" + phone + '\'' +
                ", isOnjob=" + isOnjob +
                ", positionCode='" + positionCode + '\'' +
                ", mobile='" + mobile + '\'' +
                ", eEail='" + eEail + '\'' +
                ", empId=" + empId +
                ", birthday=" + birthday +
                ", userCode='" + userCode + '\'' +
                ", address='" + address + '\'' +
                ", zipCode='" + zipCode + '\'' +
                ", dataSources=" + dataSources +
                ", workerTypeCode='" + workerTypeCode + '\'' +
                ", technicianGrade='" + technicianGrade + '\'' +
                ", defaultPosition='" + defaultPosition + '\'' +
                ", foundDate='" + foundDate + '\'' +
                ", dimissionDate=" + dimissionDate +
                ", appId='" + appId + '\'' +
                ", loginLastTime=" + loginLastTime +
                ", password='" + password + '\'' +
                ", userStatus=" + userStatus +
                ", roles='" + roles + '\'' +
                '}';
    }
}
